package com.by.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.by.course.entity.bo.BaseAppointment;

import java.util.List;
import java.util.Set;

public interface BaseAppointmentMapper extends BaseMapper<BaseAppointment> {

    int insertSelective(BaseAppointment record);

    int updateByPrimaryKeySelective(BaseAppointment record);

    List<BaseAppointment> selectAppointmentByUserId(Long userId);

    void batchUpdateStatus(Set<Long> ids);

    List<Long> selectAppointmentIdByScheduleIdList(List<Long> idList);

    List<BaseAppointment> selectAppointmentByScheduleIdList(List<Long> scheduleIdList);

    BaseAppointment selectAppointmentByUserIdAndScheduleId(Long scheduleId, Long userId);

    List<BaseAppointment> selectAppointmentByScheduleId(Long scheduleId);

    void updateStatus(Long id, Integer status);
}